package cn.tedu.egmybatis6.mappers;

import cn.tedu.egmybatis6.pojo.entity.Customers;
import cn.tedu.egmybatis6.pojo.entity.Orders;
import cn.tedu.egmybatis6.pojo.vo.CustomerVO2;
import cn.tedu.egmybatis6.pojo.vo.CustomersVO1;
import cn.tedu.egmybatis6.pojo.vo.OrderListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomersMapper {
    int insertCustomer(Customers customers);
    int insertOrders(Orders orders);

    CustomersVO1 selectCustomer(String custId);
    List<CustomerVO2> selectCustomerVO2(String city);

    OrderListVO selectOrdersVO(String orderId);

    int UpdateOrder(Orders orders);
}
